Masteriyo\RestApi\Controllers\Version1\CoursesController B

Total Complexity 80
Dependencies 12
Dependents 2
Total lines 1,177
Lines of code 818
Logical lines of code 161
Comment lines 252
Methods 17
Properties 6

Methods 17

Method Rating Maintainability Complexity Lines of code
prepare_object_for_database()
D
34 33 81
get_item_schema()
B
24
1 303
prepare_objects_query()
A
43 9 52
register_routes()
A
34 1 138
get_item_permissions_check()
S
50 5 31
get_course_data()
S
43 4 46
save_taxonomy_terms()
S
62 5 11
get_object()
S
57 4 16
restore_item()
S
57 4 14
get_collection_params()
S
44 1 52
validate_featured_image()
S
63 4 10
prepare_links()
S
54 2 21
get_taxonomy_terms()
S
59 2 15
prepare_object_for_response()
S
63 2 9
process_objects_collection()
S
62 1 12
get_courses_count()
S
74 1 4
__construct()
S
81 1 3